
export default [
    {
        path:'/index',
        name:'index',
        component : () => import('../views/index.vue') ,
        children:[
            {
                path:'/index/home',
                name:'home',
                component:() => import('../views/homes/home.vue')
            },
            {
                path:'/index/baobao',
                name:'baobao',
                component:() => import('../views/homes/baobao.vue')
            },
            {
                path:'/index/order',
                name:'order',
                component:() => import('../views/homes/order.vue')
            },
            {
                path:'/index/mine',
                name:'mine',
                component:() => import('../views/homes/mine.vue')
            },
            {
                path:'/index',
                redirect:'/index/home'
            }
        ]
    },
    {
        path:'/',
        redirect:'/index'
    },
    {
        path:'/:error(.*)',
        component : () => import('../404.vue')
    }
]